package com.yzcs.tvapp.simple.fragment;

import java.util.ArrayList;
import java.util.List;

/**
 * description TODO
 * Created by fangs on 2021/11/19 15:24.
 */
public class TestBean {

    private List<TestBean> children;
    private String code;
    private Boolean contextmenu;
    private String controlMethod;
    private Boolean disabled;
    private String id;
    private Boolean itemDate;
    private Boolean loading;
    private String name;
    private String parentId;
    private String problemDescription;
    private Integer problemLevel;
    private String problemLevelName;
    private String problemTypeId;
    private String solutionDemand;
    private String title;
    private String value;

    public TestBean() {
    }

    public TestBean(List<TestBean> children, String code, Boolean contextmenu, String controlMethod, Boolean disabled, String id, Boolean itemDate, Boolean loading, String name, String parentId, String problemDescription, Integer problemLevel, String problemLevelName, String problemTypeId, String solutionDemand, String title, String value) {
        this.children = children;
        this.code = code;
        this.contextmenu = contextmenu;
        this.controlMethod = controlMethod;
        this.disabled = disabled;
        this.id = id;
        this.itemDate = itemDate;
        this.loading = loading;
        this.name = name;
        this.parentId = parentId;
        this.problemDescription = problemDescription;
        this.problemLevel = problemLevel;
        this.problemLevelName = problemLevelName;
        this.problemTypeId = problemTypeId;
        this.solutionDemand = solutionDemand;
        this.title = title;
        this.value = value;
    }

    public List<TestBean> getChildren() {
        if (children == null) {
            return new ArrayList<>();
        }
        return children;
    }

    public void setChildren(List<TestBean> children) {
        this.children = children;
    }

    public String getCode() {
        return code == null ? "" : code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Boolean getContextmenu() {
        return contextmenu;
    }

    public void setContextmenu(Boolean contextmenu) {
        this.contextmenu = contextmenu;
    }

    public String getControlMethod() {
        return controlMethod == null ? "" : controlMethod;
    }

    public void setControlMethod(String controlMethod) {
        this.controlMethod = controlMethod;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public String getId() {
        return id == null ? "" : id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Boolean getItemDate() {
        return itemDate;
    }

    public void setItemDate(Boolean itemDate) {
        this.itemDate = itemDate;
    }

    public Boolean getLoading() {
        return loading;
    }

    public void setLoading(Boolean loading) {
        this.loading = loading;
    }

    public String getName() {
        return name == null ? "" : name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId == null ? "" : parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getProblemDescription() {
        return problemDescription == null ? "" : problemDescription;
    }

    public void setProblemDescription(String problemDescription) {
        this.problemDescription = problemDescription;
    }

    public Integer getProblemLevel() {
        return problemLevel;
    }

    public void setProblemLevel(Integer problemLevel) {
        this.problemLevel = problemLevel;
    }

    public String getProblemLevelName() {
        return problemLevelName == null ? "" : problemLevelName;
    }

    public void setProblemLevelName(String problemLevelName) {
        this.problemLevelName = problemLevelName;
    }

    public String getProblemTypeId() {
        return problemTypeId == null ? "" : problemTypeId;
    }

    public void setProblemTypeId(String problemTypeId) {
        this.problemTypeId = problemTypeId;
    }

    public String getSolutionDemand() {
        return solutionDemand == null ? "" : solutionDemand;
    }

    public void setSolutionDemand(String solutionDemand) {
        this.solutionDemand = solutionDemand;
    }

    public String getTitle() {
        return title == null ? "" : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getValue() {
        return value == null ? "" : value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
